mix = [1,2,6,'beijing',[5,2]]
print(mix)
mix.append('wangwu')
mix.extend(['shanghai','nanchang'])
mix.insert(0,'zhangsan')
print(mix)

array = [1,2,4,6,7,9]
for a in array:
    print(a , end=' ')
print('')
print('=' * 18)
mix.remove('beijing')
print(mix)
del mix[1]
print('=' * 18)
print(mix)
popVal = mix.pop()
print(mix)
print('分片' * 18)
print(mix[1:3])
print(mix[:3])
print(mix[1:])
print(mix[:])
print(mix[:-1])
print('=' * 18)
print(2 in mix)
print(99 not in mix)
print(mix.count(2))
print(mix.index('shanghai'))
mix.reverse()
print(mix)
member = [1,4,2,7,9,3]
member.sort()
print(member)
member.sort(reverse=True)
print(member)